<?php
$table='options';
$id='id';
$catch='name';
include 'm/product/p_option_images.php';
?>
<?PHP printformheader('Galleries',$_GET['cmd']);?>
	
	<?PHP  

		begin_form($_GET['cmd'],$id);
		
		

	
	//	printinputt("content_title","content_title","Name",70,99,$data[0]['content_title'],NULL);
		printfile("media_1", NULL, "Image", NULL);
		printfile("media_2", NULL, "2nd Image", NULL);
		printfile("media_3", NULL, "3rd Image", NULL);
		printfile("media_4", NULL, "4th Image", NULL);
		printfile("media_5", NULL, "5th Image", NULL);
		printfile("media_6", NULL, "6th Image", NULL);
		printfile("media_7", NULL, "7th Image", NULL);
		printfile("media_8", NULL, "8th Image", NULL);
		printfile("media_9", NULL, "9th Image", NULL);
		printfile("media_10", NULL, "10th Image", NULL);
		
		if(!empty($e['content_option']))
		{
			p_input('content_option',$o,$e);
			$page='index.php?cmd=edit&q=m/product/d_option.php&id='.$e['content_option'];		
			$page2='?q=m/media/v_media.php&mode=view_options&content_option='.$e['content_option'];	
			$image_mode='view_options';
			$option_id=$e['content_option'];	
		}
		if(!empty($e['content_product']))
		{
			p_input('content_product',$o,$e);
			$page='index.php?cmd=edit&q=m/product/d_product.php&id='.$e['content_product'];
			$page2='?q=m/media/v_media.php&mode=view_products&content_product='.$e['content_product'];	
			$image_mode='view_products';
			$product_id=$e['content_product'];
		}
		
		
		$e['content_type']=9;
		p_hidden('content_product',$o,$e);
		p_hidden('content_type',$o,$e);
		printsubmit("Save");
		
		end_form($_GET['cmd']);
	?>

	
<?PHP	printformfooter("Back to Option or Product Page",$page,'View Images for this option or Product',$page2,NULL,NULL); ?>
<?PHP

include 'm/media/b_media.php';

?>



